package com.ruoyi.common.core.domain.entity;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 机构动态评论信息对象 zx_momentreply
 * 
 * @author ruoyi
 * @date 2021-05-08
 */
public class Momentreply extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 评论id */
    private Long rId;

    /** 动态id */
    @Excel(name = "动态id")
    private Long mId;

    /** 评论内容 */
    @Excel(name = "评论内容")
    private String rContent;

    /** 评论父id */
    @Excel(name = "评论父id")
    private Long pid;

    /** 评论用户id */
    @Excel(name = "评论用户id")
    private Long suId;

    /** 评论点赞量 */
    @Excel(name = "评论点赞量")
    private Integer rLikes;

    /** 更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date time;

    public void setrId(Long rId) 
    {
        this.rId = rId;
    }

    public Long getrId() 
    {
        return rId;
    }
    public void setmId(Long mId)
    {
        this.mId = mId;
    }

    public Long getmId()
    {
        return mId;
    }
    public void setrContent(String rContent) 
    {
        this.rContent = rContent;
    }

    public String getrContent() 
    {
        return rContent;
    }
    public void setPid(Long pid)
    {
        this.pid = pid;
    }

    public Long getPid()
    {
        return pid;
    }
    public void setSuId(Long suId)
    {
        this.suId = suId;
    }

    public Long getSuId()
    {
        return suId;
    }
    public void setrLikes(Integer rLikes)
    {
        this.rLikes = rLikes;
    }

    public Integer getrLikes() 
    {
        return rLikes;
    }
    public void setTime(Date time) 
    {
        this.time = time;
    }

    public Date getTime() 
    {
        return time;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("rId", getrId())
            .append("mId", getmId())
            .append("rContent", getrContent())
            .append("pid", getPid())
            .append("suId", getSuId())
            .append("rLikes", getrLikes())
            .append("time", getTime())
            .toString();
    }
}
